const express = require('express');
const app = express();
const port = 9999;

app.get('/server', (request, response) => {
    // 设置跨域，必须设置
    response.setHeader('Access-Control-Allow-Origin', '*');
    response.send("这是Ajax的GET请求");
})

app.listen(port, () => {
    console.log(`监听端口号：${port}`);
})